#include <mutex>

using Buffer = std::vector<char>;
class CThreadPool;

class CSocketMailRoom{
public:
    CSocketMailRoom(int threadsNum=2);
    int SendData(int fd,const Buffer& data);
    int RecvData(int fd,Buffer& data);

private:
    CThreadPool* m_tPool;
    std::mutex m_readMtx;
    std::mutex m_writeMtx;
};